#!/bin/bash
n=`lsof -i:8188|grep -v COMMAND|wc -l`

if [ $n -eq 0 ];then
    echo "`date +'%Y-%m-%d_%H:%M:%S'` Svnsync Server Is Not Running!"
    cd /data0/scripts/svnsync; python svnsync.py &
    echo "`date +'%Y-%m-%d_%H:%M:%S'` Svnsync Server start !"
fi
